<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<title>Crea Hotel</title>
	<link href="resources/css/main.css" rel="stylesheet" type="text/css" />
</h:head>
<h:body>
<header>
		<a><h:link class="logo" outcome="index" /></a>
	</header>
	<div id="container">
	<div id="content1">
		<div id="contentLarge">
		<h:form>
		<p:panel header="Crea Hotel Form">
			<h:panelGrid columns="3" id="creaHotelGrid">
			
				<h:outputLabel for="nome">Nome:</h:outputLabel>
				<p:inputText id="nome" value="#{beanProdottoBase.hdto.nome}" />
				<p:message for="nome" />
				
				<h:outputLabel for="citta">Citta:</h:outputLabel>
				<p:inputText id="citta" value="#{beanProdottoBase.hdto.citta}" />
				<p:message for="citta" />
				
				<h:outputLabel for="indirizzo">Indirizzo:</h:outputLabel>
				<p:inputText id="indirizzo" value="#{beanProdottoBase.hdto.indirizzo}" />
				<p:message for="indirizzo" />

				<h:outputLabel for="mail">E-mail:</h:outputLabel>
				<p:inputText id="mail" value="#{beanProdottoBase.hdto.mail}" />
				<p:message for="mail" />

				<h:outputLabel for="n_Stelle">Stelle:</h:outputLabel>
				<p:inputText id="n_Stelle" value="#{beanProdottoBase.hdto.n_Stelle}" />
				<p:message for="n_Stelle" />

				<h:outputLabel for="prezzo">Prezzo:</h:outputLabel>
				<p:inputText id="prezzo" value="#{beanProdottoBase.hdto.prezzo}" />
				<p:message for="prezzo" />
				
				<h:outputLabel for="stanze_Disponibili">Disponibilità:</h:outputLabel>
				<p:inputText id="stanze_Disponibili" value="#{beanProdottoBase.hdto.stanze_Disponibili}" />
				<p:message for="stanze_Disponibili" />
				
				<h:outputLabel for="telefono">Telefono:</h:outputLabel>
				<p:inputText id="telefono" value="#{beanProdottoBase.hdto.telefono}" />
				<p:message for="telefono" />
				
				
				
			</h:panelGrid>
			<p:commandButton value="Crea Hotel" update="creaHotelGrid"
				action="#{beanProdottoBase.saveHotel()}" />

		</p:panel>
	</h:form>
        </div>
        </div>
        <a><h:link class="button1" outcome="creaProdottoBase" value="Indietro"/></a>
        </div>
	<h:outputStylesheet library="css" name="main.css"/>
</h:body>
</html>